import { getMapByArr } from '@/utils/'

const TABLE_ITEM_TYPE = [
  { name: '省份排序', value: 'area'}
]
const TABLE_ITEM_TYPE_MAP = getMapByArr(TABLE_ITEM_TYPE)

const FRIEND_RANK_TYPES_MAP = {
  friends: 0,
  rank: 1,
}
export const GENERAL_TYPES = [
  { name:'无', value:'' },
  { name:'报名-普通方式', value:'tree' }, // init
  { name:'抽奖+表单提交', value:'lotteryForm' }, // init feact
  { name:'表单计分答案', value:'scoreForm' }, // init 
  { name:'省份排序', value:'arearank' }, // init
  { name:'选择省份', value:'area' }, // feact
  { name:'拼图猜谜游戏', value:'puzzle' }, //init feact
  { name:'领取卡片', value:'draw' }, //init feact
  { name:'元气植物', value:'baoming' },
  { name:'报名-发号方式', value:'randbm' },  // init feact
  { name:'表单三条数据', value:'formrandlist' }, // init
]

const GENERAL_TYPES_MAP = getMapByArr(GENERAL_TYPES)

// 999抗疫日记   get_hfive_data_excavate_packing
// 微博平台uid年度汇总数据接口  get_year_report_pasture_plan
// 小米全量uid     get_user_register_days
// 小米关注雷军粉丝包   get_xiaomi_interact
const STATISTIC_DATA_TYPES_MAP = {
  reportPasturePlan: "get_year_report_pasture_plan",
  dataBag: "get_hfive_data_excavate_packing",
  aes: "aes",
  pk: "pk",
  xiaomi10Days: "get_user_register_days",
  xiaomi10Interact: "get_xiaomi_interact",
  // huawei: "get_weibodata_huawei_activity_uid_fanslist",
  weibo2020: "get_weibo_year_summary",
  weibo2021vote: "get_weibo_year_lottery",
  weiboTime: "get_weibo_timeline_2021"
}

export {
  STATISTIC_DATA_TYPES_MAP,
  TABLE_ITEM_TYPE,
  TABLE_ITEM_TYPE_MAP,
  FRIEND_RANK_TYPES_MAP,
  GENERAL_TYPES_MAP
}